<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="test">
    <img v-bind:src="imgUrl" :title="imgTitle" alt="" :xxx="yyy">
  </div>

  <script src="../js/vue.js"></script>
  <script>
    const vm = new Vue({
      el: "#test",
      data: {
        imgUrl:'http://www.atguigu.com/images/index_new/logo.png',
        imgTitle:'这是log图片',
        yyy:'atguigu'
      }
    })

    setTimeout(()=>{
      vm.imgUrl = 'https://img1.baidu.com/it/u=2062257800,3249056813&fm=253&fmt=auto&app=138&f=PNG?w=879&h=287'
      vm.imgTitle = '随便标题'
    },1000)
  </script>
</body>
</html>